package com.baidu.fengchao.broad.bo;

import com.baidu.fengchao.broad.util.MD5Util;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;

/**
 * Created with IntelliJ IDEA.
 * User: xiaojiangang
 * Date: 13-5-24
 * Time: 下午2:02
 */
@SuppressWarnings({"unused"})
public class User {

    public static final int ROLE_NORMAL = 0;
    public static final int ROLE_RD = 5;
    public static final int ROLE_QA = 10;
    public static final int ROLE_FE = 15;
    public static final int ROLE_PM = 20;
    public static final int ROLE_ADMIN = 25;

    @Id
    @Column
    private int id;
    @Column
    private String email;
    @Column
    private String password;
    @Column
    private int role = ROLE_NORMAL;

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
